//
//  IntersectionCalloutAnnotation.m
//  Portable Traffic Signal Assistor
//
//  Created by Ding on 10/17/12.
//  Copyright (c) 2012 TTU. All rights reserved.
//

#import "IntersectionCalloutAnnotation.h"

@implementation IntersectionCalloutAnnotation
@synthesize coordinate=_coordinate;
@synthesize title=_title;
@synthesize subTitle=_subTitle;
@synthesize tag=_tag;
@synthesize agency=_agency;
@synthesize subSystem=_subSystem;
@synthesize intersection=_intersection;

-(void) dealloc
{
    [_title release];
    [_subTitle release];
    [_agency release];
    [_subSystem release];
    [_intersection release];
    [super dealloc];
}

-(id) initWithCoordinate:(CLLocationCoordinate2D) coordinate agency:(Agency *)agency subSystem:(SubSystem *)subSystem intersection:(Intersection *)intersection
{
    self=[super init];
    _coordinate=coordinate;
    self.subTitle=@"";
    self.title=intersection.intersectionName;
    self.agency=agency;
    self.subSystem=subSystem;
    self.intersection=intersection;
    return self;
}

- (void)setCoordinate:(CLLocationCoordinate2D)newCoordinate
{
    //    self.coordinate=newCoordinate;
    _coordinate=newCoordinate;
}

@end
